package silvercrux.runtime;

import java.util.*;
import java.lang.*;
/**
 * Created by SilverCrux on 2016/12/6.
 */
public class RuntimeVirtualMachine {

    public static Stack<Object> rStack;
    public static HashMap<String,Object> idMap;
    public static HashMap<String,Method> methodMap;

    public static Stack<Object> getrStack() {
        if(rStack==null)
            rStack = new Stack<Object>();
        return rStack;
    }

    public static HashMap<String, Object> getIdMap() {
        if(idMap==null)
            idMap = new HashMap<String,Object>();
        return idMap;
    }

    public static HashMap<String, Method> getMethodMap() {
        if(methodMap==null)
            methodMap = new HashMap<String,Method>();
        return methodMap;
    }


}
